<template>
  <div>
    惊喜
    <div class="box">
      <div class="box_one"
           v-for="(item,index) in list"
           :key="index">
        <img :src="item.pic"
             alt="">
      </div>

    </div>
  </div>
</template>
<script>
// import axios from '../../../node_modules/axios'
import { getNewsApi, getListApi } from '../../api/home'
export default {
  name: "jingxi",
  data () {
    return {
      list: {}
    }
  },
  created () {
    getNewsApi({}).then(res => {
      console.log(res)
      // this.list = res.data.articles;
    })
    getListApi({}).then(res => {
      console.log(res.data.productList)
      this.list = res.data.productList;

    })
  },
}
</script>
<style lang="less">
</style>